#{extends 'master.html' /}
<div class="page-header">
    <div>
        <h3 class="categoryTitle">&{'secure.title'}</h3>
        <div class="clear"></div>
    </div>
</div>
<div id="login" class="page-block">

    <p class="login-description">&{'secure.description', actionBridge.Secure.registration()}</p>
#{form @authenticate().add("returnUrl", params.returnUrl)}

    #{if flash.error}
        <p class="error">
        &{flash.error}
        </p>
    #{/if}
    #{if flash.success}
        <p class="success">
        &{flash.success}
        </p>
    #{/if}
    <div class="form">
        <fieldset>
            <div>
                <label for="username">&{'secure.username'}</label>
                <input type="text" name="username" id="username" value="${flash.username}"/>
            </div>
            <div>
                <label for="password">&{'secure.password'}</label>
                <input type="password" name="password" id="password" value=""/>
            </div>
            <div>
                <label for="remember">&{'secure.remember'}</label>
                <input type="checkbox" name="remember" id="remember" value="true"
                ${flash.remember ? 'checked="true"' : ''} />

            </div>
        </fieldset>
    </div>
    <div class="bottom-button">
        <input type="submit" id="signin" value="&{'secure.signin'}"/>
    </div>
#{/form}
</div>

